#include "FileInputFilter.h"
#include <opencv2\highgui\highgui.hpp>
#include <vector>

FileInputFilter::FileInputFilter(const std::string &filename) : Filter(0, 1)
{
	image = cv::imread(filename, CV_LOAD_IMAGE_COLOR);
	
	std::vector<cv::Mat> channels;
	cv::split(image, channels);
	cv::Mat temp = channels[0];
	channels[0] = channels[2];
	channels[2] = temp;
	cv::merge(channels, image);

	outputs[0] = image;
}


FileInputFilter::~FileInputFilter(void)
{
}

void FileInputFilter::Process()
{
	//mutex.lock();
}